
  <template>
  <div class="about">
    <h3>关于</h3>
    <div>
      <input type="text" placeholder="请输入你的名字" v-model="myName" />
      <br />
      <button @click="subPerson">提交到个人信息</button>
    </div>
  </div>
</template>


<script>
export default {
  data() {
    return {
      myName: "",
    };
  },
  methods: {
    subPerson() {
      let person = { name: this.myName };
      this.$router.push({
        path: "/profile",
        query: person,
      });
    },
  },
};
</script>

<style>
</style>
